package com.bj58.mis.apm.util;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * 〈一句话功能简述〉<br> 
 * 〈拦截器配置类〉
 *
 * @author zhangyu84
 * @create 2018/6/6
 * @since 1.0.0
 */
@Configuration
public class InterceptorConfig extends WebMvcConfigurationSupport{

    @Override
    protected void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new RequestInfoInterceptor()).addPathPatterns("/**");
        super.addInterceptors(registry);
    }
}
